
<div class="container">
    <div class="wrap">
    <div class="inside">
        <h1>Contract by Sales Person Report</h1>
        <div class="form">
        <?php $form=$this->beginWidget('CActiveForm',array(
            'htmlOptions'=>array('target'=>'_blank'),
            'id'=>'report-form'
        ));?>
        <div class="row">                        
            <label>Start Date</label>
            <?php $this->widget('zii.widgets.jui.CJuiDatePicker',array(
                'model'=>$model,
                'attribute'=>'startDate',
                'value'=>date('Y-m-d'),
                
                'options' => array('dateFormat'=>'yy-mm-dd'),
            )); ?>               
            <?php echo $form->error($model,'startDate');?>
        </div>
        <div class="row">                        
            <label>End Date</label>
            <?php $this->widget('zii.widgets.jui.CJuiDatePicker',array(
                'model'=>$model,
                'attribute'=>'endDate',
                
                'value'=>date('Y-m-d'),
                'options' => array('dateFormat'=>'yy-mm-dd'),
            )); ?>        
            <?php echo $form->error($model,'endDate');?>
        </div>
        <div class="row">
            <label>Status</label>
            <?php echo $form->dropDownList($model,'status', $model->getStatusList());?>
            <?php echo $form->error($model,'status'); ?>
        </div>
        <div class="row">
            <label>Type</label>
            <?php echo $form->dropDownList($model,'type', $model->getTypeList());?>
            <?php echo $form->error($model,'type'); ?>
        </div>    
        <div class="row">
            <label>Sales Person</label>
            <?php echo $form->dropDownList($model,'empno', $model->getEmployeeList());?>
            <?php echo $form->error($model,'empno'); ?>
        </div>    
        <div class="row_buttons">
            <script>
             
            </script>
            <?php echo CHtml::submitButton('Submit');?>
        </div>
        <?php $this->endWidget(); ?>
            </div>
    </div>
        </div>
  
</div>
  <?php $this->renderPartial('/copyright',array(
        'center'=>true
    ));?>